import {lazy} from "react"

const routes=[
    {
        path:"/home",
        component:lazy(()=>import("../page/home/Home")),
        children:[
            {
                path:"/home/index",
                component:lazy(()=>import("../page/index/index/Index"))
            },
            {
                path:"/home/class",
                component:lazy(()=>import("../page/index/class/Class"))
            },
            {
                path:"/home/shop",
                component:lazy(()=>import("../page/index/shop/Shop"))
            },
            {
                path:"/home/my",
                component:lazy(()=>import("../page/index/my/My"))
            },
            {
                from:"/home",
                to:"/home/index"
            }
        ]
    },
    {
        path:"/login",
        component:lazy(()=>import("../page/login/Login"))
    },
    {
        from:"/",
        to:"/home"
    },
]

export default routes